// Package domain
/**
* @Project : geektime-basic-go-study
* @File    : article.go
* @IDE     : GoLand
* @Author  : Tvux
* @Date    : 2024/11/9 09:55
**/

package domain

type Article struct {
	Id      int64
	Title   string
	Content string
	Author  Author
	Status  ArticleStatus
}

// Author 在 article 这个 domain 里，是一个值对象
type Author struct {
	Id   int64
	Name string
}

type ArticleStatus uint8

const (
	ArticleStatusUnknown ArticleStatus = iota
	ArticleStatusUnpublished
	ArticleStatusPublished
	ArticleStatusPrivate
)
